% Animate a set intersection operation.
% The target document is a beamer presentation, so we load the
% beamer class to get the same fonts as in the presentation.
\documentclass{beamer}
\usepackage{tikz}

\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}

\begin{document}
\frame{

\pgfdeclareimage[interpolate=true,width=64cm]{lena1}{lena}
\begin{tikzpicture}[scale=0.08]
\pgftext[at=\pgfpoint{0cm}{0cm},left,base]{\pgfuseimage{lena1}}
\only<1>{\input{lena10.tex}}
\only<2>{\input{lena9.tex}}
\only<3>{\input{lena8.tex}}
\only<4>{\input{lena7.tex}}
\only<5>{\input{lena6.tex}}
\only<6>{\input{lena5.tex}}
\only<7>{\input{lena4.tex}}
\only<8>{\input{lena3.tex}}
\only<9>{\input{lena2.tex}}
\end{tikzpicture}
}
\end{document}
